package com.dmap.community.po;

import java.io.Serializable;

public class TabUserCommunity implements Serializable {
    /**
     * 主键
     * 表字段 : tab_user_community.id
     */
    private Long id;

    /**
     * 用户id
     * 表字段 : tab_user_community.userId
     */
    private Long userid;

    /**
     * 宝宝id
     * 表字段 : tab_user_community.babyId
     */
    private Long babyid;

    /**
     * 
     * 表字段 : tab_user_community.backgroundImage
     */
    private String backgroundimage;

    /**
     * 头像
     * 表字段 : tab_user_community.headImage
     */
    private String headimage;

    /**
     * 粉丝人数
     * 表字段 : tab_user_community.fans
     */
    private Integer fans;

    /**
     * 显示类别(0 对所有人显示  1对关注者显示)
     * 表字段 : tab_user_community.openType
     */
    private Integer opentype;

    /**
     * 创建时间
     * 表字段 : tab_user_community.createTime
     */
    private Long createtime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table tab_user_community
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tab_user_community
     *
     * @mbggenerated
     */
    public TabUserCommunity(Long id, Long userid, Long babyid, String backgroundimage, String headimage, Integer fans, Integer opentype, Long createtime) {
        this.id = id;
        this.userid = userid;
        this.babyid = babyid;
        this.backgroundimage = backgroundimage;
        this.headimage = headimage;
        this.fans = fans;
        this.opentype = opentype;
        this.createtime = createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tab_user_community
     *
     * @mbggenerated
     */
    public TabUserCommunity() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.id
     *
     * @return the value of tab_user_community.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.id
     *
     * @param id the value for tab_user_community.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.userId
     *
     * @return the value of tab_user_community.userId
     *
     * @mbggenerated
     */
    public Long getUserid() {
        return userid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.userId
     *
     * @param userid the value for tab_user_community.userId
     *
     * @mbggenerated
     */
    public void setUserid(Long userid) {
        this.userid = userid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.babyId
     *
     * @return the value of tab_user_community.babyId
     *
     * @mbggenerated
     */
    public Long getBabyid() {
        return babyid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.babyId
     *
     * @param babyid the value for tab_user_community.babyId
     *
     * @mbggenerated
     */
    public void setBabyid(Long babyid) {
        this.babyid = babyid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.backgroundImage
     *
     * @return the value of tab_user_community.backgroundImage
     *
     * @mbggenerated
     */
    public String getBackgroundimage() {
        return backgroundimage;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.backgroundImage
     *
     * @param backgroundimage the value for tab_user_community.backgroundImage
     *
     * @mbggenerated
     */
    public void setBackgroundimage(String backgroundimage) {
        this.backgroundimage = backgroundimage == null ? null : backgroundimage.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.headImage
     *
     * @return the value of tab_user_community.headImage
     *
     * @mbggenerated
     */
    public String getHeadimage() {
        return headimage;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.headImage
     *
     * @param headimage the value for tab_user_community.headImage
     *
     * @mbggenerated
     */
    public void setHeadimage(String headimage) {
        this.headimage = headimage == null ? null : headimage.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.fans
     *
     * @return the value of tab_user_community.fans
     *
     * @mbggenerated
     */
    public Integer getFans() {
        return fans;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.fans
     *
     * @param fans the value for tab_user_community.fans
     *
     * @mbggenerated
     */
    public void setFans(Integer fans) {
        this.fans = fans;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.openType
     *
     * @return the value of tab_user_community.openType
     *
     * @mbggenerated
     */
    public Integer getOpentype() {
        return opentype;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.openType
     *
     * @param opentype the value for tab_user_community.openType
     *
     * @mbggenerated
     */
    public void setOpentype(Integer opentype) {
        this.opentype = opentype;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_user_community.createTime
     *
     * @return the value of tab_user_community.createTime
     *
     * @mbggenerated
     */
    public Long getCreatetime() {
        return createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_user_community.createTime
     *
     * @param createtime the value for tab_user_community.createTime
     *
     * @mbggenerated
     */
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tab_user_community
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", babyid=").append(babyid);
        sb.append(", backgroundimage=").append(backgroundimage);
        sb.append(", headimage=").append(headimage);
        sb.append(", fans=").append(fans);
        sb.append(", opentype=").append(opentype);
        sb.append(", createtime=").append(createtime);
        sb.append("]");
        return sb.toString();
    }
}